package game.round.pojo;

import java.util.Date;

import game.users.pojo.AUsers;

public class ARound
{
	private int id;
	private int usersId;
	private String name;
	private String content;
	private int totalCount;
	private int winCount;
	private int loseCount;
	private int perScore;
	private int pingCount;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;
	
	private AUsers users;
	/*生成读写器*/
	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public int getUsersId()
	{
		return usersId;
	}

	public void setUsersId(int usersId)
	{
		this.usersId = usersId;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getContent()
	{
		return content;
	}

	public void setContent(String content)
	{
		this.content = content;
	}

	public int getTotalCount()
	{
		return totalCount;
	}

	public void setTotalCount(int totalCount)
	{
		this.totalCount = totalCount;
	}

	public int getWinCount()
	{
		return winCount;
	}

	public void setWinCount(int winCount)
	{
		this.winCount = winCount;
	}

	public int getLoseCount()
	{
		return loseCount;
	}

	public void setLoseCount(int loseCount)
	{
		this.loseCount = loseCount;
	}

	public int getPerScore()
	{
		return perScore;
	}

	public void setPerScore(int perScore)
	{
		this.perScore = perScore;
	}

	public byte getStatus()
	{
		return status;
	}

	public void setStatus(byte status)
	{
		this.status = status;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public Date getPubTime()
	{
		return pubTime;
	}

	public void setPubTime(Date pubTime)
	{
		this.pubTime = pubTime;
	}

	public int getPingCount()
	{
		return this.totalCount-this.winCount-this.loseCount;
	}
	
	/*重写toString*/
	public String toString()
	{
		return "ARound [id=" + id + ", usersId=" + usersId + ", name=" + name + ", content=" + content + ", totalCount="
				+ totalCount + ", winCount=" + winCount + ", loseCount=" + loseCount + ", perScore=" + perScore
				+ ", status=" + status + ", createTime=" + createTime + ", updateTime=" + updateTime + ", pubTime="
				+ pubTime + "]";
	}

	public AUsers getUsers()
	{
		return users;
	}

	public void setUsers(AUsers users)
	{
		this.users = users;
	}
}
